package cn.edu.scau.cmi.chenruilin.abstractFactory.factory;

import cn.edu.scau.cmi.chenruilin.abstractFactory.domainAbstractClass.ConsumerElectronicsDevice;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String brand) {
		switch (brand) {
		case "wens":
			return new WensFactory();
		case "tianbang":
			return new TianbangFactory();
		case "aonong":
			return new AonongFactory();
		default: return null;
		}

	}
	
	public abstract ConsumerElectronicsDevice createBeef();
	public abstract ConsumerElectronicsDevice createPork();
	public abstract ConsumerElectronicsDevice createChicken();

}
